dic = {"张": 138, "李": 188}

print("欢迎使用个人通讯录系统")
print("1：查询联系人")
print("2：添加联系人")
print("3：删除联系人")
print("4：输出所有联系人信息")
print("5：退出")

while 1:
    x = input("请输入指令：")
    if x == '1':
        y = input("请输入联系人姓名：")
        if dic1.get(y) is not None:
            print(dic1[y])
        else:
            print("查无此人")
    elif x == '2':
        z= input("请输入联系人姓名：")
        t = input("请输入联系人电话：")
        dic1[z] = t
    elif x == '3':
        e = input("请输入联系人姓名：")
        if dic1.get(e) is not None:
            del dic1[e]
            print("已删除")
        else:
            print("查无此人")
    elif x == '4':
        for key, value in dic1.items():
            print("姓名={0},电话={1}".format(key, value))
    elif xs == '5':
        break